//await delay(millis);//等待n毫秒

let delay = function (millis) {
    let promise = new Promise((resolve, reject) => {
        //console.log(`等待${millis}ms`);
        setTimeout(() => {
            resolve("setTimeout");
        }, millis);
    });
    return promise;
};
module.exports = delay;